<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<table width="500px" border="1" cellspacing="0" cellpadding="0">
			<tr><th colspan="4">用户列表</th></tr>
			<tr><th>id</th><th>账号</th><th>密码</th><th>操作</th></tr>
			<?php if(is_array($result)): $i = 0; $__LIST__ = $result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
					<td><?php echo ($vo["uid"]); ?></td>
					<td><?php echo ($vo["uname"]); ?></td>
					<td><?php echo ($vo["password"]); ?></td>
					<td>
						<form action="/index.php/home/form/edit/uid/<?php echo ($vo["uid"]); ?>" method="post">
							<input type="submit" value="查看详情"/>
						</form>
						<form action="/index.php/home/form/delete/uid/<?php echo ($vo["uid"]); ?>" method="get">
							<input type="submit" value="删除"/>
						</form>
						<input type="submit" value="编辑"/><?php endforeach; endif; else: echo "" ;endif; ?>
		</table>
	</body>
</html>